import type { RouteRecordRaw } from "vue-router";

export interface RouteMeta extends Record<string | number | symbol, unknown> {
    /** 是否需要登录才能访问该路由 */
    mustLogin?: boolean;
}

export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, "meta"> {
    name?: string;
    meta?: RouteMeta;
    component?: Component;
    children?: (RouteRecordRaw & AppRouteRecordRaw)[];
}
